package com.mtt.erp.freight.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mtt.erp.common.domain.QueryRequest;
import com.mtt.erp.common.exception.MttErpException;
import com.mtt.erp.freight.domain.McaFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mtt.erp.freight.dto.McaCreateDto;
import com.mtt.erp.freight.dto.McaDto;

import java.util.List;

/**
 * @author MrBird
 */
public interface IMcaFileService extends IService<McaFile> {

    /**
     * 分页查询
     * @param request
     * @param mcaDto
     * @return
     */
    IPage<McaFile> findMca(QueryRequest request, McaDto mcaDto);

    /**
     * 创建
     * @param mcaCreateDto
     * @return
     * @throws MttErpException
     */
    Boolean createMca(McaCreateDto mcaCreateDto) throws MttErpException;

    /**
     * 更新
     * @param mcaFile
     * @return
     * @throws MttErpException
     */
    Boolean updateMca(McaFile mcaFile) throws MttErpException;

    /**
     * 删除
     * @param mcaIds
     * @return
     * @throws MttErpException
     */
    Boolean deleteMca(String[] mcaIds) throws MttErpException;

    /**
     * 查询
     * @param id
     * @return
     */
    McaFile seekMca(String id);

    /**
     * 快递列表
     * @return
     */
    List<McaFile> findMcaList();

}
